package com.khong.baodizhen.activity;

import com.khong.baodizhen.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class LoginActivity extends Activity implements OnClickListener{
	
	private Button loginBtn;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dbz_login);
		initView();
		fillData();
	}
	
	public void initView(){
		loginBtn = (Button) findViewById(R.id.btn_login);
	}
	public void fillData(){
		loginBtn.setOnClickListener(this);
	}
	
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btn_login:
			Intent  intent = new Intent();
			intent.setClass(this, DBZHomeActivity.class);
			startActivity(intent);
			break;

		default:
			break;
		}
	}

}
